home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc A) / Acorn User China CD-ROM (UK) (Disc A).bin / DEMON / DEVELOPER / HYPERMAIL.ARC / !hypermail_oldstuff_Makefile1 < prev    next >
Encoding:
Text File  |  1995-12-14  |  1.6 KB  |  82 lines

  1. #
  2. # Makefile for Hypermail
  3. # Kevin Hughes, 8/1/94
  4. #
  5.  
  6. BINDIR=
  7. # This is where you want hypermail to be installed
  8.  
  9. MANDIR=
  10. # This is where the man page goes
  11.  
  12. HTMLDIR=
  13. # This is where the HTML documentation goes
  14.  
  15. CGIDIR= /usr/local/httpd/cgi-bin
  16. # This is where your CGI programs live
  17.  
  18. CC= cc
  19.  
  20. # CFLAGS= -O2
  21.  
  22. OBJS=        file.o mem.o string.o print.o \
  23.         parse.o struct.o date.o hypermail.o
  24.  
  25. MAILOBJS=    mail.o libcgi/libcgi.a
  26.  
  27. .c.o:
  28.         $(CC) -c $(CFLAGS) $<
  29.  
  30. all:        hypermail
  31.  
  32. hypermail:    $(OBJS)
  33.         $(CC) -o hypermail $(CFLAGS) $(OBJS)
  34. #        chmod 0755 hypermail
  35. #        chmod 0644 hypermail.1
  36. #        chmod 0644 hypermail.html
  37. #        chmod 0644 hypermail.gif
  38.  
  39. libcgi/libcgi.a:
  40.         cd libcgi; make all CC="$(CC)" CFLAGS="$(CFLAGS)"
  41.  
  42. mail:        $(MAILOBJS)
  43.         $(CC) -o mail $(CFLAGS) $(MAILOBJS)
  44.         chmod 0755 mail
  45.  
  46. $(OBJS):    Makefile hypermail.h config.h
  47.  
  48. install:
  49.         install -cs -m 0755 hypermail $(BINDIR)
  50.         install -c -m 0644 hypermail.1 $(MANDIR)
  51.  
  52. html.install:
  53.         install -c -m 0644 hypermail.html $(HTMLDIR)
  54.         install -c -m 0644 hypermail.gif $(HTMLDIR)
  55.  
  56. mail.install:
  57.         install -c -m 0755 mail $(CGIDIR)
  58.  
  59. install.alpha:
  60.         install -c $(BINDIR) -s -m 0755 hypermail
  61.         install -c $(MANDIR) -m 0644 hypermail.1
  62.  
  63. html.install.alpha:
  64.         install -c $(HTMLDIR) -m 0644 hypermail.html
  65.         install -c $(HTMLDIR) -m 0644 hypermail.gif
  66.  
  67. mail.install.alpha:
  68.         install -c $(CGIDIR) -m 0755 mail
  69.  
  70. pure:
  71.          make CFLAGS="-g" $(OBJS)
  72.         purify $(CC) -o hypermail -g $(CFLAGS) $(OBJS)
  73.  
  74. quant:
  75.          make CFLAGS="-g" $(OBJS)
  76.         quantify $(CC) -o hypermail -g $(CFLAGS) $(OBJS)
  77.  
  78. clean:
  79.         rm -f ./hypermail ./mail *.o .pure hypermail.pure* *qx *qv
  80.         rm -fr ./archive
  81.         cd libcgi; make clean
  82.